package com.aaa.os;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.aaa.os.mapper")
@EnableEurekaClient //开启eureka 客户端  该注释只对注册中心eureka 有效
//@EnableDiscoveryClient 开启发现客户端，该注释可以是任意注册中心
@EnableTransactionManagement //开启事务管理
public class OrderCApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderCApp.class,args);
    }
}
